package com.ghpt.service.impl;
import com.ghpt.mapper.LengCNMapper;
import com.ghpt.pojo.LengCN;
import com.ghpt.service.LengCNService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class LengCNServiceImppl implements LengCNService {
    @Autowired
    private LengCNMapper lengCNMapper;

    @Override
    public LengCN findLengCNById(Long id) {
        if (id != null) {
            return lengCNMapper.selectById(id);
        }else {
            return null;
        }
    }
    @Override
    public int updateById(LengCN lengCN) {
        return lengCNMapper.updateById(lengCN);//更新成功为1否则为0
    }
}
